Leat\Api\Connection D

Total Complexity 171
Dependencies 20
Dependents 14
Total lines 1,586
Lines of code 1,008
Logical lines of code 455
Comment lines 287
Methods 52
Properties 3

Methods 52

Method Rating Maintainability Complexity Lines of code
ensure_custom_attributes_exist()
A
34 6 117
apply_credits()
A
51 9 28
format_contact()
A
46 8 39
find_or_create_wp_user_by_uuid()
A
48 8 34
sync_rewards_with_spend_rules()
A
41 6 56
send_giftcard_email()
A
48 7 35
get_purchased_categories()
S
50 7 30
get_woocommerce_user_data()
S
45 6 40
update_contact()
S
53 5 23
log_exception()
S
51 4 28
sync_basic_attributes_from_order()
S
50 4 27
refund_credits_partial()
S
54 4 22
create_reward_reception()
S
56 4 19
list_giftcard_programs()
S
57 4 17
refund_credits_full()
S
58 4 17
create_contact()
S
58 4 16
get_shops()
S
60 4 15
get_rewards()
S
60 4 15
create_giftcard_transaction()
S
56 3 19
get_woocommerce_guest_data()
S
48 2 34
create_giftcard()
S
57 3 18
sync_attributes_with_category_update()
S
60 3 14
sync_user_attributes()
S
60 3 13
reverse_giftcard_transaction()
S
61 3 13
sync_guest_attributes()
S
60 3 13
get_contact_by_wp_id()
S
61 3 12
get_promotions()
S
62 3 12
create_giftcard_refund_transaction()
S
63 3 11
get_contact_by_uuid()
S
64 3 11
get_shop()
S
64 3 11
get_user_attributes()
S
56 2 16
get_product_categories_options()
S
59 2 16
format_reward()
S
58 2 16
get_contact_uuid_by_wp_id()
S
63 3 10
get_total_products_purchased()
S
64 3 10
get_first_order_date()
S
59 2 15
attribute_exists()
S
67 3 8
get_user_reward_logs()
S
60 2 12
init_client()
S
62 2 12
add_reward_log()
S
56 1 19
format_voucher()
S
56 1 19
__construct()
S
65 2 10
has_api_key()
S
75 2 4
get_api_key()
S
69 2 7
get_items_for_sync()
S
67 2 8
get_default_wc_attributes()
S
60 1 14
format_promotion()
S
61 1 12
get_user_leat_metadata()
S
63 1 11
format_giftcard_program()
S
64 1 10
format_giftcard()
S
69 1 7
format_giftcard_transaction()
S
69 1 7
format_shop()
S
71 1 6